import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import OptimizationPersist from 'vite-plugin-optimize-persist'
import PkgConfig from 'vite-plugin-package-config'

export default defineConfig({
  base: './',
  plugins: [PkgConfig(), OptimizationPersist(), vue()],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src'),
    },
  },
  server: {
    host: '0.0.0.0',
    port: 8080,
    open: true,
  },
})
